Ext.define('carManage.view.insuranceInfo.GridList', {
    extend: 'Ext.grid.Panel',
    store: 'InsuranceInfoStore',
    alias: 'widget.gridList',
    forceFit: false,
    selModel: Ext.create('Ext.selection.CheckboxModel', {mode: "SIMPLE"}),
    initComponent: function() {
        this.columns = [
            {
                header: '编号',
                sortable: true,
                hidden: true,
                dataIndex: 'id'
            }, {
                header: '车牌号码',
                sortable: true,
                width: 96,
                dataIndex: 'car_code'
            }, {
                header: '承保公司',
                sortable: false,
                dataIndex: 'insurer'
            }, {
                header: '交强险开始时间',
                sortable: false,
                dataIndex: 'insurance_jq_stime'
            }, {
                header: '交强险结束时间',
                sortable: false,
                dataIndex: 'insurance_jq_etime'
            }, {
                header: '交强险保单号',
                sortable: false,
                dataIndex: 'insurance_jq_warranty'
            }, {
                header: '交强险保费',
                sortable: false,
                dataIndex: 'insurance_jq_premium'
            }, {
                header: '车船使用税',
                sortable: false,
                dataIndex: 'vesselusetax'
            }, {
                header: '商业保险开始时间',
                sortable: false,
                dataIndex: 'insurance_commercial_stime'
            }, {
                header: '商业保险结束时间',
                sortable: false,
                dataIndex: 'insurance_commercial_etime'
            }, {
                header: '商业保险费',
                sortable: false,
                dataIndex: 'premium'
            }, {
                header: '保单号',
                sortable: false,
                dataIndex: 'policy'
            }
        ];

        this.bbar = new Ext.PagingToolbar({
            store: 'InsuranceInfoStore',
            emptyMsg: '没有数据需要显示',
            displayInfo: true
        });
        this.callParent(arguments);
    }
});